home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / lib / partman / update.d / 20detected_filesystem < prev    next >
Text File  |  2008-10-29  |  444b  |  34 lines

  1. #!/bin/sh
  2.  
  3. . /lib/partman/lib/base.sh
  4.  
  5. if [ -f /var/lib/partman/filesystems_detected ]; then
  6.     exit 0
  7. fi
  8.  
  9. dev=$1
  10. num=$2
  11. id=$3
  12. size=$4
  13. type=$5
  14. fs=$6
  15. path=$7
  16. name=$8
  17.  
  18. cd $dev
  19.  
  20. if [ $fs = free ]; then
  21.     rm -f $id/detected_filesystem
  22. else
  23.     open_dialog GET_FILE_SYSTEM $id
  24.     read_line filesystem
  25.     close_dialog
  26.  
  27.     if [ "$filesystem" = none ]; then
  28.         rm -f $id/detected_filesystem
  29.     else
  30.         mkdir -p $id
  31.         echo "$filesystem" >$id/detected_filesystem
  32.     fi
  33. fi
  34.